<!DOCTYPE html>
<html>
	<head>
		<title>砖家宝内部网址管理</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
		<script type="text/javascript" src="js/jquery-1.11.1.min.js"></script>
		<script type="text/javascript" src="js/json2.js"></script>
		<link rel="stylesheet" href="css/zjbHome.css" type="text/css" media="screen"/>
	</head>
	<body>
		<dl class="list_dl">
		<dt><b>添加内部网站</b><a href="/index" class="index">>>首页</a></dt>
		<dd>		
			站点全称：<input class="urlName" type="text"></input>
			站点网址：<input class="url" type="text"></input>
			站点介绍：<input class="introduce" type="text"></input>
			<button type="button" onclick="dowork()">添加站点</button>
		</dd>
		</dl>
		
		<script type="text/javascript">
			function dowork() {
				$.post('/zjbHome/add', {
					urlName: $('.urlName').val(),
					url: $('.url').val(),
					introduce: $('.introduce').val()
				}, function (result) {
					console.log(result);
				}, 'json');
			}
		</script>
	</body>
</html>